{* department_list.tpl *}
{load_presentation_object  filename="department_list"  assign="obj" }
{* start departments list * }
<div class="box">
<p class="box-title">Choose Department</p>
<ul>
{* loop throug the list of departments * }
{section name=i  loop=$obj->mDepartments }
{assign var=selected value="" }
{* verify  if the department is selected to decide what css style to use * }
{if ($obj->mSelectedDepartment == $obj->mDepartments[i].department_id)}
{assign var =selected value="class=\"selected\" "}
{/if}
<li>
{* generate a link for new department in the list * }
<a {$selected} href="{$obj->mDepartments[i].link_to_department}">
{$obj->mDepartments[i].name}
</a>
</li>
{/section}
</ul>
</div>

